<!DOCTYPE html>

<head>
    <meta charset="UTF-8">
    <script src="../jQuery-3.6.3.min.js"> </script>
    <script>
        $(function () {
         $('input[type="radio"]').change(function(){
            var bool=$(this).prop("checked");
            if(bool){
                $("p").text("你选择的是："+$(this).val());
            }
         })
        })
    </script>
</head>

<body>

 <label for=""><input type="radio" name="a" value="HUAWEI P60 pro"/>HUAWEI P60 pro<br/></label>
 <label for=""><input type="radio" name="a" value="HUAWEI Mate60 pro"/>HUAWEI Mate60 pro<br/></label>
 <label for=""><input type="radio" name="a" value="Apple 15pro Max"/>Apple 15pro Max  <br/></label>



</div>
<type></type>
   </div>
   <p></p>
</body>

</html>